import {defineStore} from 'pinia'
type Product = {
    name:string;
    photoUrl:string;
    direct:string;
}

export const _IndexStore = defineStore("home", {
    state:()=>{
        return{
            products:[
                {
                    name:"产品1",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
                {
                    name:"产品2",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
                {
                    name:"产品3",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
                {
                    name:"产品4",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
                {
                    name:"产品5",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
                {
                    name:"产品6",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
                {
                    name:"产品7",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
                {
                    name:"产品8",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
                {
                    name:"产品9",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
                {
                    name:"产品10",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
                {
                    name:"产品11",
                    photoUrl:"/index/test.png",
                    direct:"/index/product/product1"
                },
            ] as Product[]
        } 
    }
})


